<?php
namespace app\common\model;
use think\Model;
use think\facade\Db;
use think\model\concern\SoftDelete;
class Address extends Model
{
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;
    protected $autoWriteTimestamp = true;

    public static function getAddressById($where)
    {
    	return self::where($where)->find();
    }
    public static function getAddresslist($where)
    {
    	return self::where($where)->order('update_time','DESC')->select();
    }

}